home *** CD-ROM | disk | FTP | other *** search
/ Invenzioni & Inventori / Invenzioni and Inventori (Eclectica Publishing) (1996).ISO / invenzio / vivid / getat2.dir / 00065_Script_65 < prev    next >
Text File  |  1996-11-09  |  2KB  |  60 lines

  1. on refresh_paper
  2.   global PaginaCorrente,BOOK,LARGHEZZA
  3.   
  4.   set Current_Page=getat(BOOK,PaginaCorrente)
  5.   
  6.   set Loop=0
  7.     --Ora la cosa da fare Φ ricaricare la pagina settata con i nuovi valori.  
  8.   set Count=1
  9.   repeat with Loop in [34, 39 ] --text objects
  10.     if the casttype of cast the castnum of sprite Loop = #digitalvideo then
  11.       set the video of cast the castnum of sprite Loop to FALSE
  12.     end if
  13.     set the visible of sprite Loop to false  
  14.   end repeat
  15.   updatestage
  16.   
  17.   repeat with Loop in [34 ,39 ] --text objects
  18.     
  19.      
  20.     --------load del testo contenuto...
  21.     set Current_Object=getat(Current_Page,Count)
  22.     -------- ma prima seleziona il cast corretto secondo il tipo definito...
  23.     if integerP(the CAST of Current_Object) then  set the castnum of sprite Loop to the CAST of Current_Object
  24.     -------- se Φ testo ci copia il testo dentro...
  25.     if the type of sprite Loop= 7 then
  26.       set the text of cast (the castnum of sprite Loop) to the TEXT of Current_Object 
  27.     end if
  28.     
  29.     -------load del tipo (SIZE) del testo (Non possiede strech)
  30.     if the type of sprite Loop= 7 then
  31.       set Current_Type=getat(LARGHEZZA,PaginaCorrente)
  32.       setat Current_Type,Count, the TYPE of Current_Object
  33.     else -- setta lo stretch
  34.      -- set the width of sprite Loop to the X_SIZE of Current_Object
  35.      -- set the height of sprite Loop to the Y_SIZE of Current_Object
  36.     end if
  37.     --------load della posizione x ed y del testo...
  38.     -- set the loch of sprite Loop to the X of Current_Object 
  39.     -- set the locv of sprite Loop to the Y of Current_Object 
  40.     --------load se Φ visibile o invisibile (presente o meno) 
  41.     set the visible of sprite Loop to the ACTIVE of Current_Object
  42.     
  43.     set Count=Count+1  
  44.   end repeat 
  45.   
  46.   repeat with Loop in [34 ,39] --text objects
  47.     if the casttype of cast the castnum of sprite Loop = #digitalvideo then
  48.       set the video of cast the castnum of sprite Loop to true
  49.     end if
  50.     
  51.   end repeat
  52.   
  53.   --update dello stage...
  54.   
  55.   set the text of cast 36 to  "Page" && string(PaginaCorrente)
  56.   Updatestage
  57.   
  58. end
  59.  
  60.